using System;
using System.Collections.Generic;
using System.Text;

namespace Fuzzy
{
    public class FuzzyRule
    {
        private FuzzySet[] antecedents;

        /// <summary>
        /// Gets or sets the antecedents of the fuzzy rule.
        /// </summary>
        public FuzzySet[] Antecedents
        {
            get { return antecedents; }
            set { antecedents = value; }
        }

        private FuzzySet consequent;

        /// <summary>
        /// Gets or sets the consequent of the fuzzy rule.
        /// </summary>
        public FuzzySet Consequent
        {
            get { return consequent; }
            set { consequent = value; }
        }

        /// <summary>
        /// Creates a fuzzy rule.
        /// </summary>
        /// <param name="antecedents">The antecedents of the rule.</param>
        /// <param name="consequent">The consequent of the rule.</param>
        public FuzzyRule(FuzzySet[] antecedents, FuzzySet consequent)
        {
            this.antecedents = antecedents;
            this.consequent = consequent;
        }
    }
}
